package com.spring.campus_express_delivery.dao;

import com.spring.campus_express_delivery.entity.Orders;
import com.spring.campus_express_delivery.entity.SchoolAddress;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository("SchoolAddressDao")
@Mapper
public interface SchoolAddressDao {
    //送达地址列表
    List<SchoolAddress> selectServiceAddressByPage(HashMap<String, Object> map);
    //统计数目
    int selectCountByServiceAddress();

    void insertServiceAddress(SchoolAddress schoolAddress);

    SchoolAddress selectByServiceAddressId(int id);

    void updateSchoolAddress(SchoolAddress schoolAddress);

    void deleteSchoolAddressById(Integer id);

    SchoolAddress selectByServiceAddress(String serviceAddress);

}
